<?php
class TagModel extends Model
{
    public function getTagByPinYin($pingyin)
    {
        $map['pinyin'] = array('eq', $pingyin);
        $tag = $this->where($map)->find();
        return $tag;
    }
}